package cn.wolfcode.rbac.mapper;

import cn.wolfcode.rbac.domain.Department;
import cn.wolfcode.rbac.domain.Role;
import cn.wolfcode.rbac.util.QueryObject;

import java.util.List;

public interface RoleMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Role record);

    Role selectByPrimaryKey(Long id);

    List<Role> selectAll();

    int updateByPrimaryKey(Role record);


    /**
     * 查询数据库中有多少条数据
     * @param queryObject
     * @return
     */
    int selectForCount(QueryObject queryObject);

    /**
     * 分页的方法
     * @param queryObject
     * @return
     */
    List<Role> selectForList(QueryObject queryObject);
}